﻿using MyDay13.IRepostitype;
using MyDay13.IService;
using MyDay13.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day13Service
{
    public class UserService : IUserService
    {
        IUserRepostitype user;
        public UserService(IUserRepostitype userRepostitype)
        {
            user = userRepostitype;
        }

        public int Login(string name, string pwd)
        {
            return user.Login(name, pwd);
        }

        public int UserAdd(D13User d13User)
        {
            return user.UserAdd(d13User);
        }

        public int UserDel(string ids)
        {
            return user.UserDel(ids);
        }

        public List<D13User> UserShow()
        {
            return user.UserShow();
        }

        public int UserUpt(D13User d13User)
        {
            return user.UserUpt(d13User);
        }
    }
}
